Dart.Mail Namespace > Mailbox Class > Get Method : Get(ImapMessage[],ImapMessageInfo) Method |
Public Overloads Function Get( _ ByVal messages() As ImapMessage, _ ByVal sections As ImapMessageInfo _ ) As ImapMessage()
Dim instance As Mailbox Dim messages() As ImapMessage Dim sections As ImapMessageInfo Dim value() As ImapMessage value = instance.Get(messages, sections)
public ImapMessage[] Get( ImapMessage[] messages, ImapMessageInfo sections )
public: ImapMessage*[]* Get( ImapMessage*[]* messages, ImapMessageInfo sections )
public: array<ImapMessage^>^ Get( array<ImapMessage^>^ messages, ImapMessageInfo sections )
Exception | Description |
---|---|
ProtocolException | Bad IMAP protocol response received from server. |
/// <summary> /// Retrieves the headers for all messages in the current mailbox. /// </summary> /// <param name="myImap">A connected and authenticated Imap instance, that has a mailbox selected.</param> public void GetMessageHeaders(Imap myImap) { //Get headers for all messages in the box myImap.SelectedMailbox.Get(myImap.SelectedMailbox.ToArray(), ImapMessageInfo.Header); }
''' <summary> ''' Retrieves the headers for all messages in the current mailbox. ''' </summary> ''' <param name="myImap">A connected and authenticated Imap instance, that has a mailbox selected.</param> Public Sub GetMessageHeaders(ByVal myImap As Imap) 'Get headers for all messages in the box myImap.SelectedMailbox.Get(myImap.SelectedMailbox.ToArray(), ImapMessageInfo.Header) End Sub